window.onload = function(){
  function hideOpac() {
            $('#opac').hide();
		}
  function hideLoader() {
            $('#loading').fadeOut('normal',hideOpac());
		}
  function myfun() {
			$('#main-content').show('normal',hideLoader());
		}
  setTimeout(myfun,500);
}


$(document).ready(function(){
    $('.navigation').click(function(){
      $('#loading').show();
      setTimeout(function(){
       $('#loading').hide();
      },3500);
    });
});